//
//  KKLiveMessageBaseTableViewCell.h
//  KKLiveDemo
//
//  Created by leo on 2017/7/30.
//  Copyright © 2017年 leo. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "KKMessageItem.h"
#import "KKLiveMessageSendingTipView.h"

typedef NS_ENUM(NSUInteger, KKLiveMessageBaseTableViewCellStyle){
    KKLiveMessageBaseTableViewCellStyle_C2C = 0,
    KKLiveMessageBaseTableViewCellStyle_Group = 1,
};

@interface KKLiveMessageBaseTableViewCell : UITableViewCell {
    KKLiveMessageBaseTableViewCellStyle _cellStyle;
}

@property (nonatomic, strong) UIButton *btn_icon;   /**<用户头像*/

@property (nonatomic, strong) UILabel *lab_nickName;    /**<用户名称，群消息的时候使用*/
@property (nonatomic, strong) UILabel *lab_remarkTips;  /**<用户标记，群消息的时候使用*/

@property (nonatomic, strong) UIImageView *img_contentBackground;   /**<聊天内容气泡*/
@property (nonatomic, strong) UIView *msgContent;       /**<聊天内容*/

@property (nonatomic, strong) KKLiveMessageSendingTipView *sendTipView; /**<上传进度*/

@property (nonatomic, weak) KKMessageItem *msg;

- (instancetype)initWithC2CReuseIdentifier:(NSString *)reuseIdentifier;
- (instancetype)initWithGroupReuseIdentifier:(NSString *)reuseIdentifier;

- (void)configWithMsg:(KKMessageItem*)msg;

//  配置消息内容
- (void)configContent;

// 添加C2C样式下的控件
- (void)addC2CCellViews;

// 添加群样式下的控件
- (void)addGroupCellViews;

//  加入内容控件
- (UIView*)addElemContent;



@end
